import http from '../utils/http.js';
var url='https://test.xmjchyxh.com:8086/'//测试地址
//  var url='http://192.168.1.102:8080/'//开发地址
const ajax = {
    urls:url,
  denl: (data) => { // 登录
    return http._post2({ url:url + 'login',data})
  },
  huoquzs:(data) =>{//获取委托检测类型总数
      return http._get({ url: url + 'api/index/statisticsData/getTEntrustCheckChkTypeTotal',data})
  },
  yhqx:(data) =>{//获取用户权限信息
    return http._get({ url: url+ 'getInfo',data})
},
  huoqusb:(data) =>{//获取项目与设备信息接口
    return http._post2({ url: url+ 'api/vwProjMachInfo/findXmSbxxList',data})
},
wetolb:(data) =>{ //综合查询-获取委托检测列表
    return http._get({ url:url + 'api/tEntrustCheck/findCheckApplyList',data})
    //checkType:'00',page:'1',pageSize:'10'
},
jiancekb:(data) =>{ //获取委托检测书接口
    return http._get({ url:url + `api/tEntrustCheck/findEntrustDetails/${data}`})
    //checkType:'00',page:'1',pageSize:'10'
},
// yishouli:(data) =>{ //已受理查询-------获取检测报告信息列表
//     return http._get({ url:url + 'api/tEntrustCheck/findCheckApplyList',data})
// },
yishouli:(data) =>{ //已受理查询-------获取检测报告信息列表
    
    return http._get({ url:url + 'api/tCheckReport/findTCheckReportListPage',data})
},
yuanshibaogao:(data) =>{ //获取原始记录列表
    
    return http._get({ url: url+ 'api/tSourceRecord/getSourceRecordList',data})
},
janceList:(data) =>{ //获取检测快报列表
    
    return http._get({ url:url + 'api/tCheckDaily/findTCheckDailyList/1',data})
},
janceList2:(data) =>{ //获取检测快报列表
    
    return http._get({ url:url + 'api/tCheckDaily/findTCheckDailyList/2',data})
},
baogaoList:(data) =>{ //获取检测报告信息列表
    return http._get({ url:url +  'api/tCheckReport/findTCheckReportListPage',data})
},
jiancezliao:(data) =>{ //获取检测资料接口
    
    return http._get({ url: url + `api/tEntrustCheck/getAllTCheckItems/${data}`,data})
},
rwtzd:(data) =>{ //获取任务通知单
    
    return http._get({ url: url + `api/tEntrustCheck/getTaskAdviceNote/${data}`,data})
},
jckb:(data) =>{ //检测快报
    
    return http._get({ url: url + `api/tCheckDaily/findTCheckDailyList/3`,data})
},
rwsls:(data) =>{ //获取任务受理书
    
    return http._get({ url: url + `api/tEntrustCheck/getAllTCheckItems/${data}`,data})
},
jckbxx:(data) =>{ //获取检测快报详细信息
    
    return http._get({ url: url + `api/tCheckDaily/findTCheckDailyDetails/${data}`,data})
},
gongdan:(data) =>{ //获取检验工单列表
    return http._get({ url: url + `api/JygdController/findWorkOrderList/`,data})
},
yuansjl:(data) =>{ //原始记录生成/原始报告记录
    
    return http._get({ url: url + `api/tSourceRecord/getSourceRecordList`,data})
},
huoqury:(data) =>{ //获取检测人员
    return http._get({ url: url+ `api/JygdController/getChcekPeopleName/${data}`,data})
},
yuansjl2:(data) =>{ //原始记录审核列表
    
    return http._get({ url: url+ `api/tSourceRecord/getSourceRecordCheckList/`,data})
},
jcbgxx:(data) =>{ //获取检测报告详细信息
    
    return http._get({ url: url + `api/tCheckReport/findTCheckReportDetail/${data}`,data})
},
chak:(data) =>{ //查看附件
    
    return http._get({ url: url + `system/file/getFileList/37873/sourcerecord`,data})
},
shenchu:(data) =>{ //删除附件
    
    return http._post({ url: url + `system/file/delete`,data})
},
kbjl:(data) =>{ //检测快报结论
    
    return http._get({ url: url + `system/dict/data/list/?typeId=hy_conclusion`,data})
},
tuichu:(data) =>{ //退出登录
    
    return http._get({ url: url + `logout`,data})
},
gengxbg:(data) =>{ //更新检测报告
    
    return http._post({ url: url + `api/tCheckReport/updateTCheckReport`,data})
},
Jcrwlb:(data) =>{ //获取检验工单列表
    
    return http._get({ url: url + `api/checkTask/findCheckTask`,data})
},
jaclx:(data) =>{ //获取检测类型  
    return http._get({ url: url + `system/dict/data/list`,data})
},
jies:(data) =>{ //检测任务管理接受
    return http._post({ url: url + `api/checkTask/createSiteCheckInfo`,data})
},
chaojqi:(data) =>{ //检测快报报告超期申请
    return http._get({ url: url + `api/hyDeadline/findTCheckReportListPage`,data})
},
ylbg:(data) =>{ //获取检测类型  
    return http._get({ url: url + `sourceRecordReport/previewSourceRecordInfo/${data}`,data})
},

kbshlb:(data) =>{ //获取检测快报列表审核
    return http._get({ url: url + `api/tCheckDaily/findTCheckDailyList/2`,data})
},
chaoqi:(data) =>{ //获取检测快报列表审核 //and报告
    return http._get({ url: url + `api/hyDeadline/findTCheckReportListPage`,data})
},
jckbshlbxx:(data) =>{ //获取检测快报审核列表详细信息
    
    return http._get({ url: url + `api/tCheckDaily/findTCheckDailyDetails/${data}`,data})
},
daibsx:(data) =>{ //待办事项列表  
    return http._get({ url: url + `api/index/statisticsData/getScheduleTotal`,data})
},
sqchaoqi:(data) =>{ //更新申请过期报告 
    return http._post({ url: url + `api/hyDeadline/updateDeadline`,data})
},
hqrwtzd:(data) =>{ //获取任务通知单
    return http._get({ url: url + `api/JygdController/getTaskAdviceNote/${data}`,data})
},
hqwtjcs:(data) =>{ //获取委托检测书
    return http._get({ url: url + `api/JygdController/findEntrustDetails/${data}`,data})
},
shoulijiance:(data) =>{ //受理/转派接口
    return http._post({ url: url + `api/JygdController/acceptCheckOrder`,data})
},
xhCheckApi:(data) =>{ //提交协会审核
    return http._post({ url: url + `api/tCheckDaily/updateTCheckDailyIsFlag`,data})
},
generateTCheckReport:(data) =>{ //生成
    return http._post({ url: url + `api/tCheckReport/generateTCheckReport`,data})
},
jckblbkbsh:(data) =>{ //获取检测报告信息列表***报告审核
    return http._get({ url: url + `api/tCheckReport/findTCheckReportListPage`,data})
},
getFileList:(urld,data) =>{ //获取检测报告信息列表***报告审核
    return http._get({ url: url + urld,data})
},
kbsfgq:(data) =>{ //查看报告是否过期
    return http._get({ url: url + `api/hyDeadline/findReportIsDeadline?checkId=37874&reportType=2`,data})
},
gqbgsq:(data) =>{ //过期报告申请
    return http._post({ url: url + `api/hyDeadline/addHyDeadline`,data})
},
rwgl:(data) =>{ //任务受理书-现场检测基础信息
    return http._get({ url: url + `api/checkTask/getSiteCheckInfo/${data}`,data})
},
xczl:(data) =>{ //获取原始记录相关信息-资料检测项目
    return http._get({ url: url + `api/checkTask/getSourceRecordCheckDate/${data}/0`,data})
},
xcjcxm:(data) =>{ //获取原始记录相关信息-现场检测项目
    return http._get({ url: url + `api/checkTask/getSourceRecordCheckDate/${data}/1`,data})
},
jcbgtj:(data) =>{ //检测报告提交/审核
    return http._post({ url: url + `api/tCheckReport/auditTCheckReport`,data})
},
kbtj:(data) =>{ //快报检测信息提交和审核
    return http._post({ url: url + `api/tCheckDaily/updateTCheckDailyIsFlag`,data})
},
updateTCheckDaily:(data) =>{ //快报检测信息修改
    return http._post({ url: url + `api/tCheckDaily/updateTCheckDaily`,data})
},
gxyszt:(data) =>{ //更新原始记录状态
    return http._post2({ url: url + `api/tSourceRecord/updateSourceRecordStatus`,data})
},
tijiao:(data) =>{ //更新原始记录状态----提交
    return http._post2({ url: url + `api/tSourceRecord/updateSourceRecordStatus`,data})
},
renwushoulishu:(data) =>{ //获取委托检测-任务受理书
    return http._get({ url: url + `api/JygdController/getCheckOrderAcceptDetial/${data}`,data})
},
kbmingx:(data) =>{ //检测快报详细-检测快报明细
    return http._get({ url: url + `api/tCheckDaily/findTCheckDailyReportDetails/${data}`,data})
},
daka:(data) =>{ //打卡接口
    return http._post({ url: url + `api/checkTask/addPunchCardInfo`,data})
},
huoqudaka:(data) =>{ //获取打卡信息
    return http._get({ url: url + `api/checkTask/getPunchCardInfo/${data}`,data})
},
gengxinrwsls:(data) =>{ //更新任务受理书接口
    return http._post2({ url: url + `api/checkTask/editSiteCheckInfo`,data})
},
gengxinxx:(data) =>{ //原始记录相关信息更新接口
    return http._post({ url: url + `api/checkTask/editSourceRecordReport`,data})
},
gxjcyq:(data) =>{ //获取原始记录相关信息-检测仪器
    return http._get({ url: url + `api/checkTask/getSourceRecordCheckDate/${data}/3`,data})
},
gxqtsj:(data) =>{ //获取原始记录相关信息-其他数据
    return http._get({ url: url + `api/checkTask/getSourceRecordCheckDate/${data}/-1`,data})
},
shenchu:(data) =>{ //删除附件
    
    return http._post({ url: url + `system/file/delete`,data})
},
sebfkwt:(data) =>{ //设备反馈问题
    return http._get({ url: url + `api/JygdController/getFeedbackEquipmentProblem/${data}`,data})
},
gxgqbg:(data) =>{ //更新申请过期报告信息
    return http._post({ url: url + `api/hyDeadline/updateDeadline`,data})
},
getSourceRecordStatus:(data) =>{ //检测任务管理-处理提示调用
    return http._get({ url: url + `api/checkTask/getSourceRecordStatus/${data}`,data})
},
getJcryList:(data) =>{ //检测人员变更列表 
  return http._post({ url: url + `changeapply/findList`,data})
},
jcrydel:(data) =>{ //检测人员变更删除
  return http._delete({ url: url + `changeapply/delChange/${data}`,data})
},
getJcryInfo:(data) =>{ //检测变更详情(根据id获取)
  return http._get({ url: url + `changeapply/getCheckInfo/${data}`,data})
},
getTentrustChecInfo:(data) =>{ //检测变更详情(根据number获取)
  return http._get({ url: url + `changeapply/getTentrustChecInfo/${data}`,data})
},
jcrySubmit:(data) =>{ //检测人员/日期审批保存/提交/通过/不通过
  return http._post2({ url: url + `changeapply/checkChangeSave`,data})
},
getTentrustChecList:(data) =>{ //可检测变更列表
  return http._post({ url: url + `changeapply/getTentrustChecList`,data})
},
findCheckApplyList:(data) =>{ //派单管理 列表 -pc系统中的检测申请（这里主要看未提交）
    console.log(data.chktype,'接口值')
    // return http._get({ url: url + `CheckApplyController/findCheckApplyList/${data.chktype}`,data})
    return http._get({ url: url + `api/xmmechanism/entrustChecksList`,data})
    // api/xmmechanism/entrustChecksList
},
getAllTCheckItems:(id) =>{ //首检的委托检测资料
    return http._get({ url: url + `CheckApplyController/getAllTCheckItems/${id}`})
},
findEntrustDetails:(data) =>{ //委托资料详情
    return http._post2({ url: url + `api/xmmechanism/auditEntrustCheck?ecid=${data.ecid}`,data})
},
submitEntrustCheck:(id,data) =>{ //委托审核提交 
    return http._post({ url: url + `CheckApplyController/submitEntrustCheck/`+ id,data})
  },
xmmechanismNoticeEntrustCheck:(data) =>{ // 委托审核审核通过 
    return http._post({ url: url + `api/xmmechanism/noticeEntrustCheck`,data})
  },
  xmmechanismSaveEntrustCheck:(data) =>{ //委托审核审核驳回 
    return http._post({ url: url + `api/xmmechanism/saveEntrustCheck`,data})
  },
  getInitInfo:(data) =>{ //获取用户信息数据
    return http._get({ url: url + `changeapply/getInitInfo`,data})
},
  findReportSignature:(data) =>{ //检测报告预览 
    return http._get({ url: url + `tCheckReport/findReportSignature`,data})
  },
  deleteEntrustCheck:(data) =>{ //委托审核删除
    return http._post({ url: url + `CheckApplyController/deleteEntrustCheck`,data})
  },
  deptinfoSelect:(data) =>{ //检测公司列表
    return http._post({ url: url + `api/xmmechanism/deptinfoSelect`,data})
  },

//   export function deleteEntrustCheck (data) {
//     return request({
//       url: '/CheckApplyController/deleteEntrustCheck',
//       method: 'post',
//       params: data
//     })
//   }

}
export default ajax;